package guanchazhe;

public class TestObserver {

	public static void main(String[] args) {
		Subject subject = new CountSubject();
		Observer observerA = new CountA();
		Observer observerB = new CountB();
		
		subject.addObserver(observerA);
		subject.addObserver(observerB);
		subject.delObserver(observerB);
		subject.noticeObserver();
		System.out.println("tset");
	}
}
